/*
 * Created on May 10, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package ro.xblue.translator;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

import ro.gateway.aida.db.PersistentObject;

/**
 * @author mihai
 * e-mail: mihai@ro-gateway.org
 */
public class TrnHarvestLocation implements PersistentObject {
	private int id;
	private String name;
	private String baseURL;
	private String lang;
	private Timestamp performed;
	private Map params;
	
	private boolean markPerformed=false;

	public TrnHarvestLocation() {
		params=new HashMap();
	}
	
	
	public TrnHarvestLocation(Timestamp performed,int id) {
		this.performed=performed;
		this.id=id;
		this.markPerformed=true;
		
	}
	
	public TrnHarvestLocation(int id) {
		this.id=id;
	}
	
	/**
	 * @return Returns the baseurl.
	 */
	public String getBaseURL() {
		return baseURL;
	}
	/**
	 * @param baseurl The baseurl to set.
	 */
	public void setBaseURL(String baseurl) {
		this.baseURL = baseurl;
	}
	/**
	 * @return Returns the id.
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(int id) {
		this.id = id;
		params.put("id",new Integer(id));
	}
	/**
	 * @return Returns the lang.
	 */
	public String getLang() {
		return lang;
	}
	/**
	 * @param lang The lang to set.
	 */
	public void setLang(String lang) {
		this.lang = lang;
		params.put("plang",lang);
	}
	/**
	 * @return Returns the name.
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name The name to set.
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return Returns the performed.
	 */
	public Timestamp getPerformed() {
		return performed;
	}
	/**
	 * @param performed The performed to set.
	 */
	public void setPerformed(Timestamp performed) {
		this.performed = performed;
	}
	/**
	 * @return Returns the params.
	 */
	public Map getParams() {
		return params;
	}
	/**
	 * @param params The params to set.
	 */
	public void setParams(Map params) {
		this.params = params;
	}
	/**
	 * @return Returns the markPerformed.
	 */
	public boolean isMarkPerformed() {
		return markPerformed;
	}
}
